package org.lanqiao.tjut.entity;

public class StudentEntity implements Comparable<StudentEntity> {
	private Integer stuNumberId;
	private int stuAge;
	private int stuPhone;
	private int stuPassword;
	private String stuAddress;
	private String stuSex;
	private String stuName;

	public Integer getStuNumberId() {
		return stuNumberId;
	}

	public void setStuNumberId(Integer stuNumberId) {
		this.stuNumberId = stuNumberId;
	}

	public int getStuAge() {
		return stuAge;
	}

	public void setStuAge(int stuAge) {
		this.stuAge = stuAge;
	}

	public int getStuPhone() {
		return stuPhone;
	}

	public void setStuPhone(int stuPhone) {
		this.stuPhone = stuPhone;
	}

	public int getStuPassword() {
		return stuPassword;
	}

	public void setStuPassword(int stuPassword) {
		this.stuPassword = stuPassword;
	}

	public String getStuAddress() {
		return stuAddress;
	}

	public void setStuAddress(String stuAddress) {
		this.stuAddress = stuAddress;
	}

	public String getStuSex() {
		return stuSex;
	}

	public void setStuSex(String stuSex) {
		this.stuSex = stuSex;
	}

	public String getStuName() {
		return stuName;
	}

	public void setStuName(String stuName) {
		this.stuName = stuName;
	}

	@Override
	public String toString() {
		return "StudentEntity [stuNumberId=" + stuNumberId + ", stuAge=" + stuAge + ", stuPhone=" + stuPhone
				+ ", stuPassword=" + stuPassword + ", stuAddress=" + stuAddress + ", stuSex=" + stuSex + ", stuName="
				+ stuName + "]";
	}

	public int compareTo(StudentEntity sEntity) {
		// 乘以 -1 是为了倒叙排列
		return -1 * Integer.valueOf(this.getStuNumberId()).compareTo(Integer.valueOf(sEntity.stuNumberId));
	}
}
